package com.aps.algorithm.heuristic.genetic.model;

import lombok.Getter;

import java.io.Serializable;

/**
 * @Author nbZhuozh
 * @Date 2025-09-08  15:42
 **/
@Getter
public abstract class Gene implements Serializable {

    private String geneCode;

    public void setGeneCode() {
        this.geneCode = generatorGenCode();
    }

    /**
     * 构造 基因编码
     *
     * @return
     */
    public abstract String generatorGenCode();

}
